<table border="1">
	<th>Примечание</th>
	<th>Дата</th>
	<th>Сумма</th>

	<?php if(isset($Records)): ?>
		<?php foreach ($Records as $Row):?>
		<tr>
			<td><?php echo $Row->Prim;?></td>
			<td><?php echo $Row->Dat;?></td>
			<td><?php echo $Row->Summa;?></td>
		</tr>
		<?php endforeach; ?>
	<?php else: ?>
		<tr>
			<td colspan=3>Нет записей</td>
		</tr>
	<?php endif; ?>
</table>
